package cn.wolfcode.mapper;

import cn.wolfcode.domain.Notice;
import cn.wolfcode.qo.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface NoticeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Notice record);

    Notice selectByPrimaryKey(Long id);

    List<Notice> selectAll();

    int updateByPrimaryKey(Notice record);

    List<Notice> selectForList(QueryObject qo);

    void updateRead(@Param("id") Long id, @Param("uId") Long uId);

    void insertRelation(@Param("id") Long id, @Param("uId") Long uId);

    void updateStatus(@Param("id") Long id, @Param("date") Date date);

    List<Long> selectRelation(Long id);

    void deleteRelation(Long id);

}